package edu.ubb.remeye.encodings.encoders;

import java.awt.Image;

import edu.ubb.remeye.exception.ImageEncodingException;

/**
 * Interface for image encoding. Should be implemented for image encoders.
 * 
 * @author Andrew Ianicicau
 *
 */
public interface ImageEncoder {

	///////////////////////////////////////////////////////////////////////////////////
	////		METHODS - ImageEncoder
	///////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * Encode image object bytes into a byte array.
	 * @throws ImageEncodingException 
	 */
	public byte[] encode(Image image) throws ImageEncodingException; 
	
}
